package project.Mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {
    @Insert("insert into user(username) value(#{username})")
    void InsertUser(String username);

    //send = 1表示发送信息，send = 0表示收到的信息或者建立连接时的信息
//    @Insert("insert into message(username, message, send) value (#{username},#{message}, #{send})")
//    void InsertMessage(String username, String message, int send);

}
